const beh = require('../beh/behavior')

Component({
  behaviors: ['wx://component-export', beh],

  methods: {
    handleTap() {
      this.triggerEvent('myevent', 100, {
        capturePhase: true
      })
    }
  },

  lifetimes: {
    ready() {
      console.log(100)
      console.log(this.data.myBehaviorData.xxx)
    },
    attached() {
      console.log(this)
    }
  },

  pageLifetimes: {
    show() {
      console.log(200)
    }
  },

  export() {
    return {
      x: 100
    }
  }
})